﻿using Dapper.Contrib.Extensions;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
#nullable disable

namespace Tauren.Business.Entity.Input
{
    public class Roleinfo_InPut
    {
        public Roleinfo_InPut()
        {
            Res = new List<RoleRes_InPut>();
            PersonInfos = new List<RolePersoninfo_InPut>();
            Permissions = new List<RolePermission_InPut>();
        }

        public virtual long AutoId { get; set; }
        [Display(Name = "角色编码"), Required(ErrorMessage = "{0}不能为空!"), StringLength(30, ErrorMessage = "{0}不超过30个字符"), RegularExpression(@"^([a-z0-9]){1,30}$", ErrorMessage = "请输入小写英文字符、数字组成的{0}")]
        public virtual string Code { get; set; }
        public virtual bool HaveSystemRole { get; set; }
        public virtual List<RoleRes_InPut> Res { get; set; }
        public virtual List<RolePermission_InPut> Permissions { get; set; }
        public virtual List<RolePersoninfo_InPut> PersonInfos { get; set; }
    }
}
